/**
 * 
 */
package br.financeiro.entities;

import br.financeiro.enums.TypePhone;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * @author evaldosavio
 * 
 */
@DatabaseTable( tableName = "phone" )
public class Phone {
	
	@DatabaseField( generatedId = true )
	private int id;
	@DatabaseField
	private String number;
	@DatabaseField
	private TypePhone type;
	@DatabaseField( foreign = true, columnName = "person_id", foreignAutoRefresh = true )
	private Person person;

	public int getId() {
		return id;
	}

	public void setId( int id ) {
		this.id = id;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber( String number ) {
		this.number = number;
	}

	public TypePhone getType() {
		return type;
	}

	public void setType( TypePhone type ) {
		this.type = type;
	}

	public Person getPerson() {
		return person;
	}

	public void setPerson( Person person ) {
		this.person = person;
	}

}
